# Maintainer: Peter Lewis <plewis@aur.archlinux.org>
# Contributor: Grigorios Bouzakis <grbzks@xsmail.com>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>

pkgname=ascii
pkgver=3.11
pkgrel=2
pkgdesc="Utility for conversion between various byte representations and the ASCII character table"
arch=('i686' 'x86_64')
url="http://www.catb.org/~esr/ascii"
license=('BSD')
depends=('glibc')
source=("http://www.catb.org/~esr/ascii/ascii-${pkgver}.tar.gz")
md5sums=('ba8a9392f8aa8c6b7a52923fba870579')

build() {
  cd ${pkgname}-${pkgver}

  make
}

package() {
  cd ${pkgname}-${pkgver}

  install -D ${pkgname} \
    ${pkgdir}/usr/bin/${pkgname}

  install -D -m644 ${pkgname}.1 \
    ${pkgdir}/usr/share/man/man1/${pkgname}.1

  install -D -m644 COPYING \
    ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
